﻿using Himp.Outpatient;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.DependencyInjection;

namespace Himp.Platform
{
    /// <summary>
    /// 门诊导诊
    /// </summary>
    public class OtpNavsQuery : ISingletonDependency
    {
        private readonly IServiceProvider _serviceProvider;

        public OtpNavsQuery(IServiceProvider serviceProvider)
        {
            _serviceProvider = serviceProvider;
        }

        public async Task<PagedResultDto<OtpQueueRecDto>> GetOtpQueueRecListAsync(OtpQueueRecInput input)
        {
            var otpQueueRecService = _serviceProvider.GetService<IOtpQueueRecService>();
  
            return await otpQueueRecService.GetListAsync(input);
        }

        public async Task<PagedResultDto<OtpWkstLoginRecDto>> GetWkstLoginRecListAsync(OtpWkstLoginRecInput input)
        {
            var wkstLoginRecService = _serviceProvider.GetService<IOtpWkstLoginRecService>();

            return await wkstLoginRecService.GetListAsync(input);
        }
    }
}